﻿using SampleModelInterfaces;

namespace SampleModel
{
    public class MockCustomer : ICustomer
    {
        private int id = -1;
        public int Id
        {
            get
            {
                if (id < 0)
                {
                    id = 1;
                }
                return id;
            }
            set
            {
                id = value;
            }
        }

        private string name;
        public string Name
        {
            get
            {
                if (name == null)
                {
                    name = "<New Customer>";
                }
                return name;
            }
            set
            {
                name = value;
            }
        }

        private string city;
        public string City
        {
            get
            {
                if (city == null)
                {
                    city = "<Customer Location>";
                }
                return city;
            }
            set
            {
                city = value;
            }
        }

    }
}
